//
//  ExtDate.swift
//  BookStore
//
//  Created by JinYuXin on 2022/5/13.
//

import Foundation

extension Date
{
    var timeStamp:String{
        let timeInterval:TimeInterval = self.timeIntervalSince1970
        let timeStamp = Int(timeInterval)
        return "\(timeStamp)"
    }
}
